export default () => {
  return {
    formItems: [
      {
        field: 'id',
        type: 'input',
        label: '凭证ID',
        placeholder: '凭证ID自动生成',
        disabled: true,
        isHidden: true,
        rules: []
      },
      {
        field: 'apiName',
        type: 'input',
        label: 'API名称/标识',
        placeholder: '请输入API名称/标识',
        rules: [
          { required: true, message: 'API名称/标识不能为空', trigger: 'blur' }
        ]
      },
      {
        field: 'apiKey',
        type: 'input',
        label: 'API Key/AK',
        placeholder: '请输入API Key/AK',
        rules: [
          { required: true, message: 'API Key/AK不能为空', trigger: 'blur' }
        ]
      },
      {
        field: 'apiSecret',
        type: 'input',
        label: 'API Secret/SK',
        placeholder: '请输入API Secret/SK',
        rules: [
          { required: true, message: 'API Secret/SK不能为空', trigger: 'blur' }
        ]
      },
      {
        field: 'apiToken',
        type: 'input',
        label: 'API Token',
        placeholder: '请输入API Token',
        rules: []
      },
      {
        field: 'expirationTime',
        type: 'datepicker',
        label: '过期时间',
        placeholder: '请选择过期时间',
        rules: []
      },
      {
        field: 'remark',
        type: 'textarea',
        label: '备注',
        placeholder: '请输入备注',
        rules: []
      }
    ],
    colLayout: {
      span: 24
    },
    itemStyle: {
      padding: '10px 40px'
    }
  }
} 